package com.ygxsk.carhome.response;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by itchenqi on 2018/11/24 0024.
 * description：添加报修顶部的实体内容
 */
public class CategoryAddTopBean implements Parcelable {

    private String imgUrl;

    private String repairTypeId;

    //维修位置，顶部的九宫格，例如：墙体、路面、水电等
    private String typeName;

    /**
     * 用于判断用户是否选中了该按钮
     */
    private boolean isChecked = false;//默认的都是等于false的

    //itchen添加测试的
    //private ArrayList<DeliveryDesBottomBean> testTypeInSideList = new ArrayList<DeliveryDesBottomBean>();

    /**
     * 内部类型的适配器
     */
    //private DeliveryBottomAdapter delieryBottomAdapter;

//    public DeliveryBottomAdapter getDelieryBottomAdapter() {
//        return delieryBottomAdapter;
//    }

//    public void setDelieryBottomAdapter(DeliveryBottomAdapter delieryBottomAdapter) {
//        this.delieryBottomAdapter = delieryBottomAdapter;
//    }

//    public ArrayList<DeliveryDesBottomBean> getTestTypeInSideList() {
//        return testTypeInSideList;
//    }

//    public void setTestTypeInSideList(ArrayList<DeliveryDesBottomBean> testTypeInSideList) {
//        this.testTypeInSideList = testTypeInSideList;
//    }
    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getRepairTypeId() {
        return repairTypeId;
    }

    public void setRepairTypeId(String repairTypeId) {
        this.repairTypeId = repairTypeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }


    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.imgUrl);
        dest.writeString(this.repairTypeId);
        dest.writeString(this.typeName);
        dest.writeByte(this.isChecked ? (byte) 1 : (byte) 0);
    }

    public void readFromParcel(Parcel source) {
        this.imgUrl = source.readString();
        this.repairTypeId = source.readString();
        this.typeName = source.readString();
        this.isChecked = source.readByte() != 0;
    }

    public CategoryAddTopBean() {
    }

    protected CategoryAddTopBean(Parcel in) {
        this.imgUrl = in.readString();
        this.repairTypeId = in.readString();
        this.typeName = in.readString();
        this.isChecked = in.readByte() != 0;
    }

    public static final Parcelable.Creator<CategoryAddTopBean> CREATOR = new Parcelable.Creator<CategoryAddTopBean>() {
        @Override
        public CategoryAddTopBean createFromParcel(Parcel source) {
            return new CategoryAddTopBean(source);
        }

        @Override
        public CategoryAddTopBean[] newArray(int size) {
            return new CategoryAddTopBean[size];
        }
    };
}
